#ifndef SEGYTHREAD_H
#define SEGYTHREAD_H

#include <QThread>
#include "datatype/segy.h"
#include "QPointF"
class SegyThread : public QThread
{
    Q_OBJECT
public:
    SegyThread();
    SegyThread(QString fileName);
    QList<QVector<QPointF> > getList();
    void setRead(bool isread);
    void setBeginNum(int beginNum);
    void setEndNum(int endNum);
    void setAcc(float acc);
    void setFileName(QString fileName);
    Segy *segy;
    ~SegyThread();
protected:
    void run();
private:
    QString fileName;
    QList<QVector<QPointF> >list;
    bool isRead;
    int beginNum;
    int endNum;
    float acc;

signals:
    void allFinish();

public slots:
    void getData();

};

#endif // SEGYTHREAD_H
